package cn.yunhe.service.impl;

import cn.yunhe.dao.MemberDao;
import cn.yunhe.model.Member;
import cn.yunhe.service.MemberBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/*Spring注解*/
@Service(value = "memberBiz")
public class MemberBizImpl implements MemberBiz {

    /*Spring注解*/
    @Autowired
    @Qualifier("memberDao")
    private MemberDao memberDao;

    @Override
    public List<Member> searchByConditions(Map<String, Object> objectMap) {
        return memberDao.searchByConditions(objectMap);
    }

    @Override
    public Integer searchByConditions2TotalRecords(Map<String, Object> objectMap) {
        return memberDao.searchByConditions2TotalRecords(objectMap);
    }

    public MemberDao getMemberDao() {
        return memberDao;
    }

    public void setMemberDao(MemberDao memberDao) {
        this.memberDao = memberDao;
    }
}
